export default class DelimiterStack {
  constructor(char, count, mnode) {
    this.char_ = char;
    this.count_ = count;
    this.currentCount = count;
    this.mnode_ = mnode;
    this.prev = null;
    this.next = null;
  }
  // 删除2端链直接的节点
  static removeBetween(startLink, endLink) {
    if (startLink.next !== endLink) {
      startLink.next = endLink;
      endLink.pre = startLink;
    }
  }
  remove() {
    if (this.prev !== null) {
      this.prev.next = this.next;
    }
    if (this.next !== null) {
      this.next.prev = this.prev;
    }
  }
}
